package org.pearl.order.controller;


import org.pearl.order.service.OrderTccService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author td
 * @since 2020-01-07
 */
@RestController
@RequestMapping
public class OrderTblController {


    @Autowired
    OrderTccService orderTccService;

    @RequestMapping("/insert/tcc")
    void tcc(@RequestParam("userId") String userId, @RequestParam("code") String code, @RequestParam("count") Long count) {
        orderTccService.createOrder(userId, code, count);
    }
}

